<%-- 
    Document   : MenuRight
    Created on : Sep 29, 2012, 4:03:31 PM
    Author     : MinhThang
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
      <meta name="description" content="website description" />
      <meta name="keywords" content="website keywords, website keywords" />
      <meta http-equiv="content-type" content="text/html; charset=windows-1252" />
      <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine&amp;v1#" />
      <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz" />
      <link rel="stylesheet" type="text/css" href="style/style.css" />

        <title>JSP Page</title>
    </head>
    <body>
        <div id="sidebar_container">
        <img class="paperclip" src="style/paperclip.png" alt="paperclip" />
        <div class="sidebar">
            <%
                if( request.getAttribute("UserID")!=null)
                {
            %>
            <h4 class="user">Welcome <%= request.getAttribute("UserID").toString() %>. </h4><a href="#">Logout</a>
                <%
                }else
                {
                %>
                    <h3>Login</h3>
                    <form name="loginForm" action="login.do" method="post" onsubmit="return validate();" >
                        <table style="width: 100%">
                            <tr>
                                <td>UserName</td>
                                <td><input type="text" name="txtUserName" /></td>
                            </tr>
                            <tr>
                                <td>Password</td>
                                <td><input type="password" name="txtPassword" /></td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="submit" value="Login" name="btLogin" style="width: 80px"/>
                                </td>
                            </tr>
                        </table>
                    </form>
                <%
                }
                %>
        </div>
        <img class="paperclip" src="style/paperclip.png" alt="paperclip" />
        <div class="sidebar">
            <h3>Speakers</h3>
          content bar
        </div>
        <img class="paperclip" src="style/paperclip.png" alt="paperclip" />
        <div class="sidebar">
            <h3>Student of month</h3>
          content bar
        </div>
        <img class="paperclip" src="style/paperclip.png" alt="paperclip" />
        <div class="sidebar">
            <h3>Online support</h3>
          content bar
        </div>
      </div>
    </body>
</html>
